//
// Created by liushuai on 18-7-16.
//

#ifndef EX7_TIME_HPP
#define EX7_TIME_HPP


#include <iosfwd>

class Time {
private:
    int hours;
    int minutes;
public:
    Time();
    Time(int h,int m);
    void addmin(int m);
    void addhour(int h);
    void reset(int h = 0,int m = 0);
    Time operator+(const Time & t) const;
    Time operator-(const Time & t) const;
    Time operator*(double x) const;
    friend Time operator*(double m, const Time & t){return t*m;}
    friend std::ostream & operator<<(std::ostream & os, const Time & t);

};


#endif //EX7_TIME_HPP
